﻿namespace Commander.Core.WorkItems.Panels.Bases
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Commander.Core.Interfaces.Bases;

    /// <summary>
    /// Base panel implementation
    /// </summary>
    public class BasePanel : IPanel
    {
        private IList<IPanelItem> _itemList = new List<IPanelItem>();

        private IPanelItem _itemCurrent = null;

        public BasePanel()
        {
            _itemList.Add(new BasePanelItem { Name = "Item1" });
            _itemList.Add(new BasePanelItem { Name = "Item2" });
            _itemList.Add(new BasePanelItem { Name = "Item3" });
            _itemList.Add(new BasePanelItem { Name = "Item4" });
            _itemList.Add(new BasePanelItem { Name = "Item5" });
        }

        #region IPanel Members

        public IList<IPanelItem> Items
        {
            get { return _itemList; }
        }

        public IPanelItem CurrentItem
        {
            get { return _itemCurrent; }
            set { _itemCurrent = value; }
        }

        #endregion
    }
}
